﻿<%@ Page Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="SearchContact.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.ContactManagement.SearchContact" %>

<%@ Register src="../UserControls/UCGrid.ascx" tagname="UCGrid" tagprefix="uc1" %>

<%@ Register src="../UserControls/UCGridButtons.ascx" tagname="UCGridButtons" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../StyleSheets/salesOne_txtstyle.css" rel="stylesheet" type="text/css" />
    
    <script language="javascript" type="text/javascript">

        window.onload = function() {

            var msg = document.getElementById('ctl00_MasterMsg');
            if (msg && msg.innerHTML != '')
                showMessageBlock();
        }
        </script>

    </asp:Content>
    
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
       <table class="detailstable">
            
            <tr>
                <td colspan="5">
                    <asp:RadioButtonList ID="rdoContactType" runat="server" CssClass="rdbtn" 
                        RepeatDirection="Horizontal" AutoPostBack="True" 
                        onselectedindexchanged="rdoContactType_SelectedIndexChanged">
                        <asp:ListItem Value="1">Client</asp:ListItem>
                        <asp:ListItem Value="2">Policy</asp:ListItem>
                        <asp:ListItem Value="3">Prospect</asp:ListItem>
                        <asp:ListItem Value="4">Suspect</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    ID No:</td>
                <td>
                    <asp:TextBox ID="txtIdNo" runat="server" CssClass="txtbox"></asp:TextBox>
                </td>
                <td width="50">
                    </td>
                <td>
                    Branch:</td>
                <td>
                    <asp:DropDownList ID="branchDropDownList" runat="server" 
                        onselectedindexchanged="DropDownList2_SelectedIndexChanged" 
                        AutoPostBack="True" CssClass="ddl">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    ID Type:</td>
                <td>
                    <asp:DropDownList ID="drpIdType" runat="server" Width="126px" CssClass="ddl">
                        <asp:ListItem Selected="True" Value="-1">Select...</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    </td>
                <td>
                    Unit:</td>
                <td>
                    <asp:DropDownList ID="unitDropDownList" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="unitDropDownList_SelectedIndexChanged" 
                        CssClass="ddl">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Name:</td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" CssClass="txtbox"></asp:TextBox>
                </td>
                <td>
                    </td>
                <td>
                    SO Code:</td>
                <td>
                    <asp:DropDownList ID="soCodeDropDownList" runat="server" 
                        onselectedindexchanged="DropDownList4_SelectedIndexChanged" CssClass="ddl">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblClientId" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtClientId" runat="server" 
                        ontextchanged="TextBox3_TextChanged" CssClass="txtbox" Visible="False"></asp:TextBox>
                </td>
                <td>
                    </td>
                <td>
                    </td>
                <td>
                    </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblContId" runat="server" Visible="False"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtContractNo" runat="server" 
                        ontextchanged="contractNoTextBox_TextChanged" CssClass="txtbox" 
                        Visible="False"></asp:TextBox>
                </td>
                <td>
                   </td>
                <td>
                    </td>
                <td>
                    </td>
            </tr>
            <tr>
                <td colspan="5" class="pix8">
                   </td>
            </tr>
            <tr>
                <td colspan="5">
                    <asp:Button ID="SearchButton" runat="server" Text="Search" 
                        onclick="SearchButton_Click" CssClass="btn" />
                </td>
            </tr>
            <tr>
                <td class="pix8">
                    </td>
                <td>
                   </td>
                <td>
                    </td>
                <td>
                   </td>
                <td>
                    </td>
            </tr>
            <tr>
                <td colspan="5">
                    <uc1:UCGrid ID="UCGrid1" runat="server" />
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    <uc2:UCGridButtons ID="UCGridButtons1" runat="server" />
                </td>
            </tr>
        </table>
</asp:Content>